#include "SMPPCallbackNumPresInd.hpp"

using namespace smpp::pdu;

CallbackNumPresInd::CallbackNumPresInd(const quint8 nValue):
TLV(TLVtags::TAG_CALLBACK_NUM_PRES_IND,1),_Value(nValue){}

CallbackNumPresInd::CallbackNumPresInd(
const CallbackNumPresInd &nCallbackNumPresInd):
TLV(nCallbackNumPresInd),_Value(nCallbackNumPresInd.getValue()){}

bool CallbackNumPresInd::operator ==(
	const CallbackNumPresInd &nCallbackNumPresInd) const{
	return (TLV::operator == (nCallbackNumPresInd) && 
	_Value == nCallbackNumPresInd.getValue());
}

bool CallbackNumPresInd::operator !=(
	const CallbackNumPresInd &nCallbackNumPresInd) const{
	return !this->operator == (nCallbackNumPresInd);
}

CallbackNumPresInd &CallbackNumPresInd::operator = (
	const CallbackNumPresInd &nCallbackNumPresInd){
	if(*this == nCallbackNumPresInd)
		return *this;
	TLV::operator = (nCallbackNumPresInd);
	_Value = nCallbackNumPresInd.getValue();
	return *this;
}

void CallbackNumPresInd::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 CallbackNumPresInd::getValue() const{
	return _Value;
}
